<include file="User:header"/>
<link type="text/css" rel="stylesheet" href="../Public/css/style_ldy.css" />
<script type="text/javascript" src="../Public/js/user.js"></script>

<div class="ba2">

	      <div class="slide_a" >
           <div>
	        <ul>
	          <li class="bg_img">
              
              <div class="sjsin">

      <div class="skt2"></div>

          <div style="text-align:center; margin-top:20px;">
          <img style="border-radius:50%; width:100px; height:100px;"  src="{$avatar}"/>
             <p id="realname" style=" font-size:24px; font-weight:bold; color:#FFF; margin-top:10px;">{$username}</p>
          
          </div>
         <div class="sjsinfo">
           <ul>
              <li><b>所在地：</b><b style="color:#FFF">{$province|jgarea=###} {$city|jgarea=###}{$address}</bb></li>
             
              <li style="height:150px;"><b>公司简介：</b>
              <div style="width:370px;height:200px; overflow-y:auto; color:#FFF">  {$my_introduce} </div>
                 
              </li>
             
           </ul>
         
         </div> 

        
    </div></li>
	        </ul>
	      </div>
	      
	    </div>
	   
</div>

<script type="text/javascript">
//收藏
function  keep(id,userid){
	
	
		  var module='User';
		  var url=window.location.search;
		  var title=document.getElementById('realname').innerHTML;
	 if(userid){
		  $.post(
				  'index.php?g=User&m=Index&a=keep', 
				  {'id':id,
				   'module':module,
				   'url':url,
				   'title':title,
				  },
				  function(res){
					alert(res)
					});
	  }else{alert('请登录')}
	}

 $(document).ready(function(){
        settin('1');
    });

</script>

<div class="auto">
    
</div>

<div class="sjsnav">
  <div class="auto">
    <div class="tkbt sjsmuen">
	    <ul id="tits">
          <li onclick="settin(1)" >TA发布的商品</li>
          <li onclick="settin(2)" >TA的帖子</li>
          <li onclick="settin(3)" >TA的收藏</li>
          
          
        </ul> 
    </div>
 </div>
</div> 
<div style="width:100%;background:#EEE;height:auto !important; margin-top:-10px;"> 
 <div class="main"  style="background:#FFF;">
    <div class="left" style="width:80%">

        <div class="designer" id="con_1" style="display:none">
           
             <div style="width:98%;margin:auto;height:auto;border-radius:6px;margin:10px 0px 0px 12px;">
                 {if ($data_product)}
                  <volist name="data_product" id="r">
                 <div class="wind_my_prod">
                    <img class="wind_my_prodimg1" width="220" height="150" src="{$r['thumb']}" />
                    <ul class="wind_my_produl">
                      <li>
                        <a style="font-size:14px;font-weight:bold;">{$r['title']}</a>
                        <span style="float:right;"><?php echo date("Y/m/d",$r['createtime'])?></span>
                      </li>
                      
                    </ul>
                  </div>
                </volist>
           {else}
                     <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">他还没上传商品</div>
                   {/if}
          
     
          <div style="clear:both;"></div>
      </div>
      
      
   </div>
 
  
    
    <div class="designer themeajax" id="con_2" style="display:none">
            
              <div class="tiezi" id="theme">
               
                 {if $list_theme}
                      <volist name="list_theme" id="r">
                         <ul>
                            <li style="width:45%">
                              <a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}" target="_blank">{$r['title']|str_cut=###,30}</a>
                            </li>
                                 <li style="width:15%;color:#000;"><img src="../Public/images/order6.png" />&nbsp;&nbsp;&nbsp;{$r['reply_num']}</li>
                                 <li style="width:15%;color:#000;"><img src="../Public/images/windimg44.png" />&nbsp;&nbsp;&nbsp;{$r['hits']}</li>
                            <li style=" text-align:right; color:#000; ">
                            {$r['createtime']|toDate=###,'Y-m-d H:i:s'}
                            </li>
                          </ul>
                       </volist>   
                   {else}
                     <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">他还未开始发帖</div>
                   {/if}
                      <div id="keep_g" style="text-align:center; "><?php if(count($list_theme)==10){ ?><a id="theme_cha" style="font-size:18px;color:#f5af58;"  href="index.php?m=User&a=theme&id={$id}&p=1">查看更多</a><?php }?></div>
                </div>
      
      
   </div> 
   
   
   <div class="designer" id="con_3" style="display:none">
               <div class="tiezi">
               
                 {if $keep}
                      <volist name="keep" id="r">
                         <ul>
                            <li>
                               {if $r['module']=='Zforum_theme'}
                                   {php 
                                        $arr=explode('m=',$r['url']);
                                        $url=$arr[1];
                                   } 
                                <a href="index.php?m={$url}" >{$r['title']|str_cut=###,30}</a>
                               {else}
                                <a href="index.php?m={$r['module']}&a=show&id={$r['conid']}">{$r['title']|str_cut=###,30}</a>
                               {/if}
                            </li>
                                 <li></li>
                                 <li></li>
                            <li>
                            {$r['createtime']|remianday=###}
                            </li>
                          </ul>
                       </volist>   
                   {else}
                     <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">他还未开始收藏</div>
                   {/if}
                      <div id="keep_k" style=" text-align:center; "><?php if(count($keep)==10){ ?><a id="keep_cha" style="font-size:18px;color:#f5af58;"  href="index.php?m=User&a=keep&id={$id}&p=1">查看更多</a><?php }?></div>
                </div>
   </div>
   
    
</div>   
    <style>
    .right{  float:right; width:15%; height:700px;}
	.yuyue{  width:100%; margin-top:8px; height:200px;}
    .yuyue ul li{   margin-top:20px; font-size:16px;  }
	
    .yuyue p{ text-align:center; color:#CCC; font-size:10px}
	
	.dongt{width:100%; margin-top:15px; height:400px;}
	.zuixin{ height:50px; background:#604328; font-size:26px; line-height:50px; text-align:center; color:#FFF}
	.dongt ul li{height:50px; line-height:50px; margin:0 auto; border-bottom:#999 solid 1px; width:90%}
	.yut{
		border:#604328 solid 2px;
		height:48px; 
		line-height:48px;
		background:url(../Public/images/yuyue.png) no-repeat ;
		background-position:20px 5px;
		text-align:center
		}
    .yut span {
		font-size:16px;
		font-weight:bold;
		color:#604328;
		
		
		}
	#theme ul li{ font-weight:100; color:#000}	
    </style>
    <div class="right" style="width:15%">
         
           <div class="dongt">
               <div class="zuixin">最新动态</div>
               <ul>
               {php $r=M('Dynamic')->where('userid='.$id)->order('id desc')->limit('6')->select();foreach($r as $k=>$v):}
                     
                     
                  <li>
                      {if $v['module']=='Zforum_theme'}
                           {php 
                                $arr=explode('m=',$v['url']);
                                $url=$arr[1];
                           } 
                        <a  href="index.php?m={$url}">{$v['title']|str_cut=###,22}</a>
                      {else}
                       <a  href="index.php?m={$v['module']}&a=show&id={$v['conid']}">{$v['title']|str_cut=###,22}</a>
                      {/if}
                  </li>
                 {php endforeach;}
               </ul>
         
          </div>       
        
         
          
        
    </div>
    <div class="clear"></div>
</div>



